class Dog{
    public String name="李四";
    public String color;
    public int age;

    public Dog(){
        System.out.println("ajss");
    }

    public Dog(String name){
        System.out.println("aggag");
    }
    public void barks(){
        System.out.println(this.name+"摇尾巴");
    }
}
public class Test {
    public static void main(String[] args) {
           Dog dog1=new Dog();
           dog1.age=20;
           dog1.name="张三";
           dog1.barks();


    }
}
